home *** CD-ROM | disk | FTP | other *** search
- Path: salvucci.avid.com!user
- From: an340729@anon.penet.fi (HighRoller)
- Newsgroups: comp.lang.c++
- Subject: Re: Visual C++ memory
- Date: Mon, 11 Mar 1996 14:49:09 -0500
- Organization: HighRoller's anonymous
- Message-ID: <an340729-1103961449090001@salvucci.avid.com>
- References: <4i06pl$ret@crash.microserve.net>
- NNTP-Posting-Host: salvucci.avid.com
- X-Newsreader: Yet Another NewsWatcher 2.0.1
-
- Where are you storing the text? If you are using a large file, make sure
- you store in the heap and not on the stack. And when you do your
- allocation, make sure that you really got the allocation (check the result
- from ::new() or malloc() or whatever).
-
- If that doesn't help, copy the lines of source code up here pointing out
- the line at which it barfs and let's see.
-
- In article <4i06pl$ret@crash.microserve.net>, ada105@psu.edu wrote:
-
- :: Hi all,
- :: I'm having little problem with visual C++ for windows and I was
- ::wondering if anyone out the could help me. I'm writing a program
- ::which needs to read information from text files into memory. I have
- ::the program written to read it, and it works fine for a small amout of
- ::reading, but after it reads for a second in a big file, it gives me an
- ::out of memory error. I looked it over and I though it might have been
- ::because I was using the medium memory model, so I tried switching to
- ::large. Then, the program gave me a error that an ASSERT statement had
- ::failed in the "filecore.cpp" file. Can someone help me out with this?
- ::I'm just really starting and I'm not quite sure how to get around this
- ::one. I have Charles Petzold's Windows Programming and the book Inside
- ::Visual C++ if you can refer me to anything in those that might do it,
- ::but I couldn't find anything. I'd really appreciate any help you
- ::could give me, thanks!
- ::
- :: Alex(ada105@psu.edu)
-